package com.xu.sms.entity;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author xupenghao@163.com
 * @date 2018-06-04 21:20
 */
public class Type implements Serializable {

    private Integer typeId;
    private String typeName;
    private Date typeTime;
    private String typeImgurl;
    private Integer typeParentid;
    private String typeDescription;

    public Type() {
        super();
    }

    public Type( String typeName, Date typeTime, String typeImgurl,
                 String typeDescription,Integer typeParentid) {

        this.typeName = typeName;
        this.typeTime = typeTime;
        this.typeImgurl = typeImgurl;
        this.typeParentid = typeParentid;
        this.typeDescription = typeDescription;
    }

    public void setTypeDescription(String typeDescription){
        this.typeDescription = typeDescription;
    }
    public String getTypeDescription(){
        return this.typeDescription;
    }


    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Date getTypeTime() {
        return typeTime;
    }

    public void setTypeTime(Date typeTime) {
            this.typeTime =typeTime;;
    }

    public String getTypeImgurl() {
        return typeImgurl;
    }

    public void setTypeImgurl(String typeImgurl) {
        this.typeImgurl = typeImgurl;
    }

    public Integer getTypeParentid() {
        return typeParentid;
    }

    public void setTypeParentid(Integer typeParentid) {
        this.typeParentid = typeParentid;
    }

    @Override
    public String toString() {
        return "Type{" +
                "typeId=" + typeId +
                ", typeName='" + typeName + '\'' +
                ", typeTime=" + typeTime +
                ", typeImgurl='" + typeImgurl + '\'' +
                ", typeParentid=" + typeParentid +
                '}';
    }
}
